﻿@section header
{<!-- Bellows Styles -->
    <link href="~/Themes/RongJi/Style/base/css/search.css?v=1" rel="stylesheet" />
    <style>
        .pageHeaderMini {
            display: none;
        }
    </style>
}
@section title
{
    蓉记鲜鲜鲜立夏;
}
@section pagetitle
{
    蓉记鲜鲜鲜立夏
}
@model List<RiderShop.Mobile.ServiceEntity.Product.ProductBasicInfoExtend>


<div data-role="container" class="product-container glist">
    <input type="hidden" value="1" id="pageIndex">
    <div class="rotate_body">
        <header data-role="header">

            <div class="glist_header">
                <ul class="tbox">

                    <li>
                        <span>
                            <a href="javascript:;" class="icon_list" onclick="menuNav(0);"></a>
                        </span>
                    </li>
                    <li>
                        <label onclick="menuNav(1);">默认排序</label>
                    </li>
                    <li>
                        <span>
                            <a href="javascript:;" class="icon_one_grid " onclick="menuNav(2, 0);">
                                <a href="javascript:;" class="icon_more_grid on" onclick="menuNav(3, 1);"></a>
                            </a>
                        </span>
                    </li>
                </ul>
            </div>
            <div id="sort_div" class="sort_div">
                <ul>

                    <li>
                        <a href="javascript:void(0)" onclick="navTo(3,0)">销量从高到低</a>
                    </li>

                    <li>
                        <a href="javascript:void(0)" onclick="navTo(0,0)">价格从高到低</a>
                    </li>

                    <li>
                        <a href="javascript:void(0)" onclick="navTo(0,1)">价格从低到高</a>
                    </li>

                    <li>
                        <a href="javascript:void(0)" onclick="navTo(2,0)">评价从高到低</a>
                    </li>

                </ul>
                <div class="sort_div_mask" ontouchstart="menuNav(1);event.stopPropagation();return false;" onclick="menuNav(1);"></div>
            </div>
        </header>
        <header class="pageHeaderMiniS">

            <img src="~/Themes/RongJi/Style/v2.0/imgs/minitop_bg1.png" style="width: 100%; height: auto">
            <a href="javascript:window.history.go(-1)" class="goback">返回</a>
            <!-- InstanceBeginEditable name="pageTitle" -->
            <span class="pageTitle">
                <span class="serachbox_wrapper">

                    <input class="inputTxt" placeholder="请输入关键词" type="text" id="txtKeyword" value="@Request.QueryString["keyword"]">
                    <input type="submit" class="submit_btn_search" value="" id="btnProductSearch">
                </span>
            </span>
            <!-- InstanceEndEditable -->
        </header>

        <section data-role="body" class="body">
            @if (0 == 1)
            {

                <div class="noresult">
                    <div class="inner-wrapper">
                        <h1>十分抱歉，暂时没有与 <strong class="red">"问问"</strong> 的相关的商品</h1>
                    </div>
                </div>
            }
            else
            {



                <div>
                    <ul id="produt_list" class="glist_ul glist_grid">
                        @*@foreach (var item in Model.Result.Data)
                            {
                                <li>
                                    <a href="/Product/ProductDetail?prd=@item.ProductId">
                                        <div>
                                            <span class="img_wrap">
                                                <img src="" style="background-image:url(@item.ActualImageUrl);">
                                            </span>
                                            <div class="itemFeaturesWeb">
                                                @Html.Raw(item.WebDescription)
                                            </div>
                                            <div class="itemFeaturesView">
                                                @Html.Raw(item.ViewDescription)
                                            </div>
                                        </div>
                                        <div class="clearfix">
                                            <label class="title">@item.Title</label>
                                            <p>
                                                <label class="price1">￥@item.UnitPriceFormat</label>
                                                <label class="price2" style="display:none;">原价：￥0.00</label>
                                                <span class="discount" style="display:none;">0折 </span>
                                                @if (item.DisplayHaveInventory == "现货")
                                                {
                                                    <span class="icon_shoppingcart " onclick="AddToCart('@item.ProductId',1);return false;">&nbsp;</span>
                                                }
                                                else
                                                {
                                                    <span class="icon_shoppingcart on">&nbsp;</span>
                                                }
                                            </p>
                                        </div>
                                    </a>
                                </li>

                            }*@


                    </ul>
                    <div data-role="widget" data-widget="loading_bottom" id="loading_bottom" class="loading_bottom" style="display:none">
                        <div class="widget_wrap">
                            <ul class="tbox">
                                <li>
                                    <div class="loading_wrap">
                                        <span class="loading">&nbsp;</span>
                                    </div>
                                </li>
                                <li>
                                    正在加载，请稍后...
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div id="showMore" page="0">

                    </div>
                </div>
            }
        </section>
    </div>
</div>


@*
    <div class="box">
        <div class="sort_toolbar">
            <a href="#" lang="shijian" id="time">默认<i class="glyphicon glyphicon-chevron-down"></i></a>
            <a href="#" id="salesVolume">销量<i class="glyphicon glyphicon-chevron-up"></i></a>
            <a href="#" lang="jiage" id="price">价格<i class="glyphicon glyphicon-chevron-down"></i></a>
            <a href="#" lang="pinglun" id="comment">评论<i class="glyphicon glyphicon-chevron-down"></i></a>
            <br class="clearfix">
        </div>
        <div id="wrapper">
            <div id="scroller">
                <div class="produt_list" id="produtList">
                    <input type="hidden" value="@Model.SubcategoryCode" id="txtCategoryId">
                    @foreach (var item in Model.Result.Data)
                    {
                    <div class="list_item" id="@Html.Raw(" list_item" + @item.productid)">
                        <div class="item_inner">
                            <a href="/Product/ProductDetail?prd=@item.ProductId">
                                <span>
                                    <img src="@item.ActualImageUrl" alt="" class="T">
                                </span>
                                <h3>@item.Title</h3>
                            </a>
                            <div class="peice_bag">
                                <em>￥@item.UnitPriceFormat </em>
                                @if (item.DisplayHaveInventory == "现货")
                                {
                                <a href="javascript:void(0)" onclick="AddToCart(@item.ProductId,1)">
                                    <span class="bag">
                                        <img src="~/Themes/RongJi/Style/base/imgs/bag.png" alt="">
                                    </span>
                                </a>
                                }
                                else
                                {
                                <span class="bag">
                                    <img src="~/Themes/RongJi/Style/base/imgs/bag_no.png" alt="">
                                </span>
                                }

                                <br class="clearfix">
                            </div>
                        </div>
                    </div>
                    }
                </div>

                <div id="showMore" page="1">
                    更多...
                </div>
            </div>
        </div>
    </div>
            >*@


@section footer
{
    <div data-role="widget" data-widget="sideBar" class="sideBar" id="sideBar" onclick="menuNav(0);">
        <div class="widget_wrap">
            <ul>
                @{
                    var categoryModel = new RiderShop.Mobile.Modle.CategoryModel();
                    categoryModel.LoadAllSubcategoryExistProduct();
                    foreach (var category in categoryModel.Categories)
                    {
                        <li onclick="this.classList.toggle('on');event.stopPropagation();" class="on">
                            <a href="javascript:;" class="level1">@category.CategoryName</a>
                        </li>

                        <ol>
                            @foreach (var subcategory in categoryModel.SubCategories.Where(s => s.ParentCategoryId == category.CategoryId))
                            {
                                <li>
                                    <a href="/Product/ProductList?sid=@subcategory.CategoryId">@subcategory.CategoryName</a>
                                </li>
                            }
                        </ol>
                    }

                }
            </ul>
        </div>
    </div>

    <script src="~/Themes/RongJi/Style/plugins/spin.min.js"></script>
    <script language="javascript" type="text/javascript">
        var scrollSeleep = false;
        function menuNav (type) {
            switch (type) {
                case 0:
                    var container = document.querySelectorAll(".product-container")[0];
                    if (container.getAttribute("style")) {

                        scrollSeleep =false;
                        container.removeAttribute("style");
                        document.getElementById("sideBar").classList.remove("on");
                        setTimeout(function () {
                            container.classList.remove("animate");
                            $(".rotate_body").removeAttr("style");
                        }, 350);
                    } else {
                        window.scrollTo(0, 0);
                        scrollSeleep =true;
                        var height = $(window).height();
                        container.classList.add("animate");
                        container.setAttribute("style", "height:" + height + "px;");
                        $(".rotate_body").height(height);
                        document.getElementById("sideBar").classList.add("on");
                        //var w = document.body.offsetWidth;
                        //var w1 = Math.cos((60/180)*Math.PI)*w - Math.sin((30/180)*Math.PI)*180;
                        //document.getElementById("sideBar").style.width = w-w1+"px";
                    }
                    break;
                case 1:
                    $("#sort_div").toggleClass("on");
                    break;
                case 2:
                    //dataCache.glist_big = true;
                    $.cookie('glist_big','true');
                    $("#produt_list").addClass("glist_big");
                    $(".icon_one_grid, .icon_more_grid").removeClass("on").eq(arguments[1]).addClass("on");
                    break;
                case 3:
                    $.cookie('glist_big','false');
                    //dataCache.glist_big = false;
                    $("#produt_list").removeClass("glist_big");
                    $(".icon_one_grid, .icon_more_grid").removeClass("on").eq(arguments[1]).addClass("on");
                    break;
                default:

                    break;
            }
        }

        function navTo(order,sort){
            var navUrl = url;
            if($("#txtKeyword").val()){
                navUrl+=("keyword="+$("#txtKeyword").val()+"&");
            }

            if($("#txtCategoryId").val()){
                navUrl+=("sid="+$("#txtCategoryId").val()+"&");
            }

            navUrl+=("sort="+sort+"&order="+order+"");

            window.location.href = navUrl;
        }

        var url = "ProductList?";
        var urlAjax = "ProductListByAjaxRequest?";

        //添加到购物车
        var AddToCart = function(productId, quantity) {
            try {
                KevinShop.Common.ShoppingCart.UpdateToCart(productId, quantity);
                KevinShop.MessageBox.Success("添加到购物车成功！");
                //添加购物车成功后,篮子变成绿色且上面的数字发生变化
                KevinShop.Common.ShoppingCart.RefreshTotalQty();
                var total = KevinShop.Common.ShoppingCart.TotalQty;
                if (total > 0) {
                    $('.cart_badge img').attr('src', '/Themes/RongJi/Style/base/imgs/shopcart_full.png');
                    $(".cart_badge .badge").html(total);
                } else {
                    $('.cart_badge img').attr('src', '/Themes/RongJi/Style/base/imgs/shopcart_empty.png');
                    $(".cart_badge .badge").html("");
                }
            } catch(e) {
                console.log(e);
            }
        };

        //滚动到屏幕底部时,追加下一页数据
        /*---------------------加载更多--------------------*/
        var isloading = false;
        var counter = 1;
        var totalPage = @Model.TotalPage;
        if(totalPage > 1) {
            $(window).bind("scroll", function() {
                if(scrollSeleep)
                {
                    return;
                }
                if ($(document).scrollTop() + $(window).height() + 10 >= $(document).height()) {
                    LoadProduct(totalPage);
                }
            });
        }

        function LoadProduct(totalPage){
            var pageIndex = $('#showMore').attr('page');
            var categoryId = document.getElementById('txtCategoryId').value;
            var args = "";
            if(pageIndex >= totalPage) {
                $("#showMore").show().html('加载完毕').delay(2300).slideUp(1600);
                return;
            }
            if(isloading) {
                return;
            }
            $("#loading_bottom").show();
            isloading = true;
            @*switch(@Model.FiterIndex)
            {
                case 1://默认升序(ActiveDate)
                    args = "page=" +  pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=1&order=1&keyword=@Model.Keyword";
                    break;
                case 2://默认降序(ActiveDate)
                    args = "page=" +  pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=0&order=1&keyword=@Model.Keyword";
                    break;
                case 3://销量升序
                    args = "page=" +  pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=1&order=3&keyword=@Model.Keyword";
                    break;
                case 4://销量降序
                    args = "page=" +  pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=0&order=3&keyword=@Model.Keyword";
                    break;
                case 5://价格升序
                    args = "page=" +  pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=1&order=0&keyword=@Model.Keyword";
                    break;
                case 6://价格降序
                    args = "page=" + pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=0&order=0&keyword=@Model.Keyword";
                    break;
                case 7://评论升序
                    args = "page=" + pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=1&order=2&keyword=@Model.Keyword";
                    break;
                case 8://评论降序
                    args = "page=" + pageIndex + "&findex=@Model.FiterIndex&sid=" + categoryId + "&sort=0&order=2&keyword=@Model.Keyword";
                    break;
            }*@
            args = "page=" +  pageIndex + "&sid=" + categoryId + "&sort=@Request.QueryString["sort"]&order=@Request.QueryString["order"]&keyword=@Model.Keyword";
            $.ajax({
                type: "GET",
                url:  urlAjax + args,
                dataType: "JSON",
                success: function(response){
                    isloading = false;
                    if(response.length){
                        $('#showMore').attr('page',parseInt(pageIndex)+1);
                    }
                    $("#loading_bottom").hide();
                    /*---------------------半透明慢慢的滑动上来,在向上滑动过程中越来越明显--------------------*/
                    $.each(response, function(key, value) {

                        $("#produt_list").append("<li id='div" + counter + "' style='margin-top:80px;opacity:0.3'></li>");
                        
                        var promoType='';
                        switch(value.PromotionTypeStr){
                            case 'Clearance':
                                promoType='清';
                                break;
                            case 'DefaultProduct':
                                promoType='好';
                                break;
                            case 'FreeeShipping':
                                promoType='免';
                                break;
                            case 'GOfferGift':
                                promoType='赠';
                                break;
                            case 'HotSale':
                                promoType='热';
                                break;
                            case 'NewProduct':
                                promoType='新';
                                break;
                            case 'PromitonNow':
                                promoType='促';
                                break;
                            case 'Recommended':
                                promoType='荐';
                                break;
                            case 'SpecialOffer':
                                promoType='减';
                                break;
                            case 'Presell':
                                promoType='预';
                                break;

                            default:
                                promoType='';
                        }
                        var promoIcon = promoType===''?'':'<span class="corner_mark"></span><label class="headtitle">'+promoType+'</label>';

                        var html =            '<a href="/Product/ProductDetail?prd=' + value.ProductId + '">'
                                          + promoIcon
                                                 +'   <div>'
                                                +'         <span class="img_wrap">'
                                                +'             <img src="" style="background-image:url(' + value.ActualImageUrl + ');">'
                                               +'          </span>'
                                                +'  <div class="itemFeaturesWeb">'
                                                +value.WebDescription
                                           +'   </div>'
                                            +'  <div class="itemFeaturesView">'
                                               +value.ViewDescription
                                           +'   </div>'

                                              +'       </div>						<div class="clearfix">'
                                              +'           <label class="title">' + value.Title + '</label>'
                                               +'          <p>'
                                              +'               <label class="price1">￥' + value.UnitPriceFormat + '</label>'
                                               +'              <label class="price2" style="display:none;">原价：￥0.00</label>'
                                              +'               <span class="discount" style="display:none;">0折 </span>'
                        if (value.DisplayHaveInventory == "现货")
                        {
                            if(value.Active){
                                html +='         <span class="icon_shoppingcart " onclick="AddToCart(\'' + value.ProductId + '\',1);return false;">&nbsp;</span>'
                            }
                            else{
                                html +='       <span class="icon_shoppingcart on" onclick="return false;">&nbsp;</span>'
                            }
                        }
                        else
                        {
                            html +='       <span class="icon_shoppingcart on" onclick="return false;">&nbsp;</span>'
                        }
                        html +=' </p>              </div>         </a>';


                        $("#div" + counter).append(html).animate({ opacity: '1', marginTop: 0 }, 1200);
                        counter++;
                    });
                }
            });
        }


        $(document).ready(function() {
            //设置section位置为一屏
            $('*[data-role="body"]').css("min-height", (Math.min(window.screen.height, (document.body.scrollHeight-80)) - $('*[data-role="header"]').height() )+"px");

            if($.cookie('glist_big')==='true'){
                menuNav(2);
            }
            else{
                menuNav(3);
            }

            LoadProduct(totalPage);

            //让底部toolbar选中
            var $homeImg = $("#homeImg");
            var $categoryImg = $("#categoryImg");
            var $myaccountImg = $("#myaccountImg");
            var $searchImg = $("#searchImg");
            $homeImg.attr("src", "/Themes/RongJi/Style/base/imgs/f10.png");
            $categoryImg.attr("src", "/Themes/RongJi/Style/base/imgs/f2.png");
            $myaccountImg.attr("src", "/Themes/RongJi/Style/base/imgs/f3.png");
            $searchImg.attr("src", "/Themes/RongJi/Style/base/imgs/f4_c.png");

            //当只有一页数据时'更多'不需要显示出来
            if(@Model.TotalPage == 1) {
                $("#showMore").hide();
            }

            @*  var $categoryId = $("#txtCategoryId").val();//分类Id
            var url = "ProductList?";
            //当页面重新进入的时候,让之前选择的条件呈现
            switch(@Model.FiterIndex)
            {
                case 1://默认升序(ActiveDate)
                    $("#salesVolume").removeClass();
                    $("#price").removeClass();
                    $("#comment").removeClass();
                    $("#time").addClass("current");
                    $("#time i:first-child").removeClass();
                    $("#time i:first-child").addClass('glyphicon glyphicon-chevron-up');
                    break;
                case 2://默认降序(ActiveDate)
                    $("#salesVolume").removeClass();
                    $("#price").removeClass();
                    $("#comment").removeClass();
                    $("#time").addClass("current");
                    $("#time i:first-child").removeClass();
                    $("#time i:first-child").addClass('glyphicon glyphicon-chevron-down');
                    break;
                case 3://销量升序
                    $("#time").removeClass();
                    $("#price").removeClass();
                    $("#comment").removeClass();
                    $("#salesVolume").addClass("current");
                    $("#salesVolume i:first-child").removeClass();
                    $("#salesVolume i:first-child").addClass('glyphicon glyphicon-chevron-up');
                    break;
                case 4://销量降序
                    $("#time").removeClass();
                    $("#price").removeClass();
                    $("#comment").removeClass();
                    $("#salesVolume").addClass("current");
                    $("#salesVolume i:first-child").removeClass();
                    $("#salesVolume i:first-child").addClass('glyphicon glyphicon-chevron-down');
                    break;
                case 5://价格升序
                    $("#salesVolume").removeClass();
                    $("#time").removeClass();
                    $("#comment").removeClass();
                    $("#price").addClass("current");
                    $("#price i:first-child").removeClass();
                    $("#price i:first-child").addClass('glyphicon glyphicon-chevron-up');
                    break;
                case 6://价格降序
                    $("#salesVolume").removeClass();
                    $("#time").removeClass();
                    $("#comment").removeClass();
                    $("#price").addClass("current");
                    $("#price i:first-child").removeClass();
                    $("#price i:first-child").addClass('glyphicon glyphicon-chevron-down');
                    break;
                case 7://评论升序
                    $("#salesVolume").removeClass();
                    $("#price").removeClass();
                    $("#time").removeClass();
                    $("#comment").addClass("current");
                    $("#comment i:first-child").removeClass();
                    $("#comment i:first-child").addClass('glyphicon glyphicon-chevron-up');
                    break;
                case 8://评论降序
                    $("#salesVolume").removeClass();
                    $("#price").removeClass();
                    $("#time").removeClass();
                    $("#comment").addClass("current");
                    $("#comment i:first-child").removeClass();
                    $("#comment i:first-child").addClass('glyphicon glyphicon-chevron-down');
                    break;
            }

            var baseArgs = "sid=" + $categoryId + "&keyword=@Model.Keyword";

            //按默认升序或者降序
            var $time = $("#time");
            $time.click(function () {
                //单击的时候,上箭头或者下箭头
                var currentClass = $("#time i:first-child").attr("class");;
                $("#time i:first-child").removeClass();
                var args = '';
                if(currentClass == 'glyphicon glyphicon-chevron-down') {
                    //默认升序(findex=1表示界面上是按时间升序来排,sort=1表示升序,order=1表示排序字段是ActiveDate)
                    args = "&findex=1&sort=1&order=1";
                    $("#time i:first-child").addClass('glyphicon glyphicon-chevron-up');
                }
                else {
                    //默认降序(findex=2表示界面上是按时间降序来排,sort=0表示降序,order=1表示排序字段是ActiveDate)
                    args = "&findex=2&sort=0&order=1";
                    $("#time i:first-child").addClass('glyphicon glyphicon-chevron-down');
                }
                window.location.href = url + baseArgs + args;
            });

            //按销量升序或者降序
            var $salesVolume = $("#salesVolume");
            $salesVolume.click(function () {
                //单击的时候,上箭头或者下箭头
                var currentClass = $("#salesVolume i:first-child").attr("class");;
                $("#salesVolume i:first-child").removeClass();
                var args = '';
                if(currentClass == 'glyphicon glyphicon-chevron-down') {
                    //销量升序(findex=1表示界面上是按销量升序来排,sort=1表示升序,order=3表示排序字段是TotalSoldQty)
                    args = "&findex=3&sort=1&order=3";
                    $("#salesVolume i:first-child").addClass('glyphicon glyphicon-chevron-up');
                }
                else {
                    //销量降序(findex=1表示界面上是按销量降序来排,sort=0表示降序,order=3表示排序字段是TotalSoldQty)
                    args = "&findex=4&sort=0&order=3";
                    $("#salesVolume i:first-child").addClass('glyphicon glyphicon-chevron-down');
                }
                window.location.href = url + baseArgs + args;
            });

            //按价格升序或者降序
            var $price = $("#price");
            $price.click(function () {
                //单击的时候,上箭头或者下箭头
                var currentClass = $("#price i:first-child").attr("class");;
                $("#price i:first-child").removeClass();
                var args = '';
                if(currentClass == 'glyphicon glyphicon-chevron-down') {
                    //价格升序(findex=5表示是界面上是按价格升序来排,sort=1表示升序,order=0表示排序字段是UnitPrice)
                    args = "&findex=5&sort=1&order=0";
                    $("#price i:first-child").addClass('glyphicon glyphicon-chevron-up');
                }
                else {
                    //价格降序(findex=6表示是按价格降序来排,sort=0表示降序,order=0表示排序字段是UnitPrice)
                    args = "&findex=6&sort=0&order=0";
                    $("#price i:first-child").addClass('glyphicon glyphicon-chevron-down');
                }
                window.location.href = url + baseArgs + args;
            });

            //按评论升序或者降序
            var $comment = $("#comment");
            $comment.click(function () {
                var currentClass = $("#comment i:first-child").attr("class");;
                $("#comment i:first-child").removeClass();
                var args = '';
                if(currentClass == 'glyphicon glyphicon-chevron-down') {
                    //评论升序(findex=7表示是界面上是按评论升序来排,sort=1表示升序,order=2表示排序字段是ReviewCount)
                    args = "&findex=7&sort=1&order=2";
                    $("#comment i:first-child").addClass('glyphicon glyphicon-chevron-up');
                }
                else {
                    //评论降序(findex=8表示是界面上是按评论降序来排,sort=1表示升序,order=2表示排序字段是ReviewCount)
                    args = "&findex=8&sort=0&order=2";
                    $("#comment i:first-child").addClass('glyphicon glyphicon-chevron-down');
                }
                window.location.href = url + baseArgs + args;
            });
              *@
            //搜索
            var $productSearch = $("#btnProductSearch");
            $productSearch.click(function () {
                var $keyword = $("#txtKeyword").val();
                var args = "";
                args = "keyword=" + $keyword;

                @*    switch(@Model.FiterIndex)
            {
                case 1://默认升序(ActiveDate)
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=1&order=1&keyword=" + $keyword;
                    break;
                case 2://默认降序(ActiveDate)
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=0&order=1&keyword=" + $keyword;
                    break;
                case 3://销量升序
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=1&order=3&keyword=" + $keyword;
                    break;
                case 4://销量降序
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=0&order=3&keyword=" + $keyword;
                    break;
                case 5://价格升序
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=1&order=0&keyword=" + $keyword;
                    break;
                case 6://价格降序
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=0&order=0&keyword=" + $keyword;
                    break;
                case 7://评论升序
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=1&order=2&keyword=" + $keyword;
                    break;
                case 8://评论降序
                    args = "findex=@Model.FiterIndex&sid=" + $categoryId + "&sort=0&order=2&keyword=" + $keyword;
                    break;
            }
            *@
                window.location.href = url + args;
            });
        });


        window.config = {
            link: window.location.href,
            imgUrl: '',
            title: window.title,
            desc: '蓉记鲜鲜鲜 - ' + document.title
        };
    </script>
}
